import request from '@/utils/request'

// 查询收入单列表
export function listMoneyin(query) {
  return request({
    url: '/mes/financial/moneyin/list',
    method: 'get',
    params: query
  })
}

// 查询收入单详细
export function getMoneyin(id) {
  return request({
    url: '/mes/financial/moneyin/' + id,
    method: 'get'
  })
}

// 新增收入单
export function addMoneyin(data) {
  return request({
    url: '/mes/financial/moneyin',
    method: 'post',
    data: data
  })
}

// 修改收入单
export function updateMoneyin(data) {
  return request({
    url: '/mes/financial/moneyin',
    method: 'put',
    data: data
  })
}

